package com.victor.entity.activity_tuikuan;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 秒杀
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "act_miaosha")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ActMiaosha {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "ms_id", unique = true, nullable = false, length = 11)
	private Integer ms_id;// 主键id
	
	@Column(name = "table_name", length = 50)
	private String table_name;// 表区分 -- 表名

	@Column(name = "table_id", length = 50)
	private String table_id;// 对应表id
	
	@Column(name = "ms_starttime", length = 50)
	private String ms_starttime;// 秒杀开始时间

	@Column(name = "ms_endtime", length = 50)
	private String ms_endtime;// 秒杀结束时间

	@Column(name = "ms_price", length = 50)
	private String ms_price;// 秒杀价钱

	@Column(name = "ms_number", length = 50)
	private String ms_number;// 秒杀数量
}
